package org.anti996.lms.service;

import org.anti996.lms.model.Transport;
import com.baomidou.mybatisplus.extension.service.IService;
import org.anti996.lms.model.TransportOutput;

import java.util.List;

/**
 * <p>
 * 运单 服务类
 * </p>
 *
 * @author The Anti996 Authors
 * @since 2022-07-15
 */
public interface TransportService extends IService<Transport> {
     //根据司机编号查询运单信息
     List<Transport> findBydID(Integer d_id);

     List<TransportOutput> listAllTransports();
     List<TransportOutput> listAllTransportsByDriver(String username);

     //根据收发货的仓库查询未出发运单信息
     Transport findByW(Integer widfrom,Integer widto);
     //根据收发仓库判断未出发运单是否已存在
     boolean isexist(Integer widfrom,Integer widto);
     //根据司机编号查询目前未出发的运单
     Transport findunfinish(Integer d_id);
     //根据司机编号查询未到达的运单
     Transport findunarrive(Integer d_id);

}
